﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;

namespace FreesqlSimpleExtension;

/// <summary>
/// 模糊查询
/// </summary>
public class FsContainsAttribute(string name = "", bool isAnd = false, params string[] containsArray) : FsAttribute(name)
{
    /// <summary>
    /// 包含数组
    /// </summary>
    public List<string> ContainsArray { get; set; } = [.. containsArray];
    /// <summary>
    /// 默认使用or连接，true使用and连接
    /// </summary>
    public bool IsAnd { get; set; } = isAnd;
}